package endurance.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Author: sunlin
 * @Date: 2024-05-17 16:21
 * @Version: 1.0
 * @Description:
 */
@Slf4j
@Component
public class SmsLintener implements ApplicationListener<MessageEntity> {
    @Override
    public void onApplicationEvent(MessageEntity event) {
        log.info("邮件：{}", event.toString());
    }

}
